<!-- 校验失败和人工校验中（全部）是同一页面 -->
<template>
  <div>
    <div class="rightDiv" v-if="companyInfo.checkStatus == 0">
      <!-- <div class="titleDiv">
        <div>企业基本信息</div>
      </div> -->
      <ContainerTitle text="企业基本信息"></ContainerTitle>
      <div class="information">
        <img style="margin-right: 15px;" src="@/assets/image/time.jpg" />
        <div class="Under">您的认证信息正在认证中，请耐心等待。</div>
      </div>
    </div>
    <div class="rightDiv" v-if="companyInfo.checkStatus == 2">
      <ContainerTitle text="企业基本信息"></ContainerTitle>
      <div class="information">
        <div class="reason">
          <img src="@/assets/image/error.jpg" class="error" />
          <div class="failed">认证失败</div>
          <div>原因：{{companyInfo.failReason}}</div>
        </div>
        <div class="wrong">
          <span>您的认证信息核验失败，请重新提交人工认证材料。以便账号正常使用。</span>
        </div>
      </div>
      <div class="Recertification">
        <Buttons :buttons="buttons" @Recertification="Recertification"></Buttons>
        <!-- <el-button class="button" @click="Recertification">重新认证</el-button> -->
      </div>
    </div>
  </div>
</template>
<script>
import {mapState} from 'vuex'
export default {
  computed: {
    ...mapState(['companyInfo']),
  },
  data() {
    return {
      buttons: [{ text: "重新认证", type: "success", size: "l", method: "Recertification" }],
      size: ''
    }
  },
  methods: {
    Recertification() {
      if(this.companyInfo.clueType == 1 || this.companyInfo.clueType == 0) {
        this.$router.push({ path: '/company/recertificationHuaqu' })
      } else if (this.companyInfo.clueType == 2) {
        this.$router.push({ path: '/company/recertificationNotAcountry' })
      } else if (this.companyInfo.clueType == 3) {
        this.$router.push({ path: '/company/recertificationIllegalUnit' })
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.layout {
  min-height: 100vh;
  position: relative;
  padding-bottom: 150px;
  box-sizing: border-box;
}
.breadcrumb {
  width: 1000px;
  margin: 20px 0;
}
.roomDiv {
  display: flex;
  justify-content: center;
}

.roomDiv .leftDiv {
  width: 200px;
  text-align: left;
}

.roomDiv .rightDiv {
  width: 800px;
  margin-left: 30px;
}
.titleDiv {
  border-bottom: 2px solid #045db9;
  text-align: left;
  padding: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #045db9;
  margin-bottom: 20px;
}
.msgDiv {
  margin: 40px 0;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.information {
  margin-top: 60px;
  font-size: 14px;
  // display: flex;
  //   justify-content: center;
  .Under {
    font-size: 24px;
    color: #333333;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
  }
  .reason {
    display: flex;
    justify-content: center;
    align-items: center;

    .error {
      width: 30px;
      height: 28px;
      margin-right: 10px;
    }
    .failed {
      color: #f13c3d;
      font-size: 24px;
      margin-right: 15px;
    }
  }
  .wrong {
    line-height: 75px;
  }
}
.Recertification {
  .button {
    color: #fff;
    background-color: #045db9;
  }
}
</style>